package com.tedu.egweibo2.mapper;

import com.tedu.egweibo2.pojo.entity.Comment;
import com.tedu.egweibo2.pojo.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int insertComment(Comment comment);

    List<CommentVO> selectCommentListByWeiboId(Long weiboId);

    int updateComment(Comment comment);

    int deleteCommentById(@Param("id") Long id,@Param("userId") Long userId);
}
